//
//  HomeFirstNextJX.m
//  Fragrance
//
//  Created by yinzhongyuan on 15/5/22.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "HomeFirstNextJX.h"

@implementation HomeFirstNextJX

+(NSMutableArray *)getHomeModel:(NSData *)data
{
    NSMutableArray *arrNext = [NSMutableArray array];
    NSError *error = nil;
    NSDictionary *dic = [NSJSONSerialization JSONObjectWithData:data options:NSJSONReadingMutableContainers error:&error];
    NSDictionary *dic1 = [dic objectForKey:@"data"];
    NSArray *array = [dic1 objectForKey:@"recommend"];
    for (NSDictionary *dic2 in array) {
        HomeModel *model = [HomeModel getHomeModel];
        model.title = [dic2 objectForKey:@"title"];
        model.nextId = [dic2 objectForKey:@"objid"];
        model.tupian = [dic2 objectForKey:@"pcover"];
        model.miaoshu = [dic2 objectForKey:@"description"];
        [arrNext addObject:model];
    }
    return arrNext;
}



@end
